<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // ceil 天花板 向上取整
        console.log(Math.ceil(1.1));//2
        // floor 地板 向下取整
        console.log(Math.floor(1.9));//1
        // max 最大值
        console.log(Math.max(1, 54, 2, 7, 9));//54
        // min 最小值
        console.log(Math.min(1, 55, 3, 66, 8));//1
        // 随机数
        console.log(Math.random());
    </script>
</body>

</html>